<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网络办公系统 </title>
<script type="text/javascript">
 function login(){
   if(isNull("userNme")*isNull("passWord")==0){
       alert("请填写完整登陆信息！");
   }else{
       document.login.action="servlet/UserServlet";
       document.login.method="post";
       document.login.submit();
   }
 }
  function pageInit(){
      <%
        Object obj = request.getAttribute("message");
      %>
      var message = '<%=obj%>';
     if(message!='null'){
       alert(message);
     }
   }
   function isNull(id){
   var idValue = document.getElementById(id).value;
     if(idValue==""){
     alert(id+"项不能为空！");
     return 0;
  }else{
    return 1;
  }
}

</script>
<style type="text/css">
<!--
*{overflow:hidden; font-size:9pt;}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-image: url('images/bg.gif');
	background-repeat: repeat-x;
}
-->
</style></head>

<body onload="pageInit();">
<table width="100%"  height="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="561" style="background:url('images/lbg.gif')"><table width="940" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="238" style="background:url('images/login01.jpg')">&nbsp;</td>
          </tr>
          <tr>
            <td height="190"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="208" height="190" style="background:url('images/login02.jpg')">&nbsp;</td>
                <td width="518" style="background:url('images/login03.jpg')">
                <form name="login"><table width="320" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="40" height="50"><img src="images/user.gif" width="30" height="30"></td>
                    <td width="38" height="50">用户</td>
                    <td width="242" height="50"><input type="text" name="userNme" id="userNme" style="width:164px; height:32px; line-height:34px; background:url(images/inputbg.gif) repeat-x; border:solid 1px #d1d1d1; font-size:9pt; font-family:Verdana, Geneva, sans-serif;"></td>
                  </tr>
                  <tr>
                    <td height="50"><img src="images/password.gif" width="28" height="32"></td>
                    <td height="50">密码</td>
                    <td height="50"><input type="password" name="passWord" id="passWord" style="width:164px; height:32px; line-height:34px; background:url(images/inputbg.gif) repeat-x; border:solid 1px #d1d1d1; font-size:9pt; "></td>
                  </tr>
                  <tr>
                    <td height="40">&nbsp;</td>
                    <td height="40">&nbsp;</td>
                    <td height="60"><a href="javascript:login()"><img src="images/login.gif" style="border:0" width="95" height="34" /></a></td>
                  </tr>
                  <tr style="color:'red'">
                  <%
                   Object result = request.getAttribute("result");
                   if(result==null){
                     result="";
                   }
                   %>
                  <%=result %>
                  </tr>
                </table></form></td>
                <td width="214" style="background:url('images/login04.jpg')" >&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="133" style="background:url('images/login05.jpg')">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

